package com.ruoyi.electronicFence.service.Impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.electronicFence.mapper.CoordinateRegionMapper;
import com.ruoyi.electronicFence.domain.CoordinateRegion;
import com.ruoyi.electronicFence.service.ICoordinateRegionService;

/**
 * 坐标围栏区域信息Service业务层处理
 *
 * @author ygsj
 * @date 2024-04-10
 */
@Service
public class CoordinateRegionServiceImpl implements ICoordinateRegionService
{
    @Autowired
    private CoordinateRegionMapper coordinateRegionMapper;

    /**
     * 查询坐标围栏区域信息
     *
     * @param id 坐标围栏区域信息主键
     * @return 坐标围栏区域信息
     */
    @Override
    public CoordinateRegion selectCoordinateRegionById(Long id)
    {
        return coordinateRegionMapper.selectCoordinateRegionById(id);
    }

    /**
     * 查询坐标围栏区域信息列表
     *
     * @param coordinateRegion 坐标围栏区域信息
     * @return 坐标围栏区域信息
     */
    @Override
    public List<CoordinateRegion> selectCoordinateRegionList(CoordinateRegion coordinateRegion)
    {
        return coordinateRegionMapper.selectCoordinateRegionList(coordinateRegion);
    }

    /**
     * 新增坐标围栏区域信息
     *
     * @param coordinateRegion 坐标围栏区域信息
     * @return 结果
     */
    @Override
    public int insertCoordinateRegion(CoordinateRegion coordinateRegion)
    {
        return coordinateRegionMapper.insertCoordinateRegion(coordinateRegion);
    }

    /**
     * 修改坐标围栏区域信息
     *
     * @param coordinateRegion 坐标围栏区域信息
     * @return 结果
     */
    @Override
    public int updateCoordinateRegion(CoordinateRegion coordinateRegion)
    {
        return coordinateRegionMapper.updateCoordinateRegion(coordinateRegion);
    }

    /**
     * 批量删除坐标围栏区域信息
     *
     * @param ids 需要删除的坐标围栏区域信息主键
     * @return 结果
     */
    @Override
    public int deleteCoordinateRegionByIds(Long[] ids)
    {
        return coordinateRegionMapper.deleteCoordinateRegionByIds(ids);
    }

    /**
     * 删除坐标围栏区域信息信息
     *
     * @param id 坐标围栏区域信息主键
     * @return 结果
     */
    @Override
    public int deleteCoordinateRegionById(Long id)
    {
        return coordinateRegionMapper.deleteCoordinateRegionById(id);
    }
}
